Class Database

Summary

Fully Qualified Name: CodeIgniter\Database\Database

Description

Database Connection Factory

Creates and returns an instance of the appropriate DatabaseConnection

Methods

Name Description Defined By
load() Parses the connection binds and returns an instance of the driver ready to go. Database
loadForge() Creates a new Forge instance for the current database type. Database
loadUtils() Loads the Database Utilities class. Database

Method Details

load()

Parses the connection binds and returns an instance of the driver ready to go.

Parameter Name Type Description
$params array
$alias string

Returns: mixed

loadForge()

Creates a new Forge instance for the current database type.

Parameter Name Type Description
$db \ConnectionInterface|\BaseConnection

Returns: mixed

loadUtils()

Loads the Database Utilities class.

Parameter Name Type Description
$db \ConnectionInterface|\BaseConnection

Returns: mixed

Top